package com.glory.dgcpcpda.entity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * FileName: ReparFromListEntity
 * Author: XJH
 * Date: 2020/8/20 19:20
 * Description:
 * History:
 */
public class RepairFromListEntity implements Serializable {
    private List<RepairData> REPAIRFORMLIST;

    public List<RepairData> getREPAIRFORMLIST() {
        if (REPAIRFORMLIST == null) {
            return new ArrayList<>();
        }
        return REPAIRFORMLIST;
    }

    public void setREPAIRFORMLIST(List<RepairData> REPAIRFORMLIST) {
        this.REPAIRFORMLIST = REPAIRFORMLIST;
    }

    public static class RepairData implements Serializable{
        private RepairFromEntity REPAIRFORM; //维修单表头

        private EqpInfoEntity.EqpInfo EQUIPMENT; //设备信息
        private String name; //维修单表头
        private RepairSheetDataEntity REPAIRSHEETDATA;//维修单详情
        private List<RepairLogEntity> REPAIRFORMHISLIST;//维修历史日志
        private List<RepairSheetDataEntity.PartListEntity> PARTSLINEDATAS;//零部件列表

        public EqpInfoEntity.EqpInfo getEQUIPMENT() {
            return EQUIPMENT == null ? new EqpInfoEntity.EqpInfo() : EQUIPMENT;
        }

        public void setEQUIPMENT(EqpInfoEntity.EqpInfo EQUIPMENT) {
            this.EQUIPMENT = EQUIPMENT;
        }

        public String getName() {
            return name == null ? "" : name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public List<RepairSheetDataEntity.PartListEntity> getPARTSLINEDATAS() {
            if (PARTSLINEDATAS == null) {
                return new ArrayList<>();
            }
            return PARTSLINEDATAS;
        }

        public void setPARTSLINEDATAS(List<RepairSheetDataEntity.PartListEntity> PARTSLINEDATAS) {
            this.PARTSLINEDATAS = PARTSLINEDATAS;
        }

        public List<RepairLogEntity> getREPAIRFORMHISLIST() {
            if (REPAIRFORMHISLIST == null) {
                return new ArrayList<>();
            }
            return REPAIRFORMHISLIST;
        }

        public void setREPAIRFORMHISLIST(List<RepairLogEntity> REPAIRFORMHISLIST) {
            this.REPAIRFORMHISLIST = REPAIRFORMHISLIST;
        }

        public RepairFromEntity getREPAIRFORM() {
            return REPAIRFORM;
        }

        public void setREPAIRFORM(RepairFromEntity REPAIRFORM) {
            this.REPAIRFORM = REPAIRFORM;
        }

        public RepairSheetDataEntity getREPAIRSHEETDATA() {
            return REPAIRSHEETDATA;
        }

        public void setREPAIRSHEETDATA(RepairSheetDataEntity REPAIRSHEETDATA) {
            this.REPAIRSHEETDATA = REPAIRSHEETDATA;
        }
    }

}